package com.bonc.rms;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;

import com.bonc.odk.logmanager.Log4jTraceParameters;
import com.bonc.odk.logmanager.LogManager;

@SuppressWarnings("deprecation")
public class ServletInitializer extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		
		LogManager.init(new Log4jTraceParameters("rms", Startup.class.getResource("/").getPath()));
		
		return application.sources(Startup.class);
	}

}
